﻿var NodeID = UrlParm.parm('nodeid');
function doing(action, IndexID) {
    var returnValue;
    switch (action) {

        case 'addContentLink':
            var Title=$('#Title_'+IndexID);
            
            //eval('var Title = Title_' + IndexID + '.innerText');
            parent.window.opener.add_links(parent.SetId, IndexID, Title.text())
            break;
        case 'viewpublish':
            eval('var mPath = URL_' + IndexID + '.href');
            window.open(mPath, "", "")

            break;
        case 'getURL':
            eval('var mPath = URL_' + IndexID + '.href');
            prompt("文章发布URL地址", mPath);
            break;
        case 'display_record':
            document.location = "admin_publish.php?sId=7900fdebce2c2368cc70ea301ee18fc3&o=editContentLink&extra=ui_main&NodeID=" + NodeID + "&offset=" + document.documentlist.offset.value;
            break;

        case 'date_search':
            var DateString = $('#txtPubTime').val();
            document.location = "editContentLink_list.aspx?nodeid=" + NodeID + "&offset=" + $('#offset').val() + "&Date=" + DateString;
            
            break;
        case 'keyword_search':
            var KeywordsString = $('#SearchKeywords').val();
            document.location = "editContentLink_list.aspx?nodeid=" + NodeID + "&offset=" + $('#offset').val() + "&Keywords=" + KeywordsString;
            break;
        case 'search_pro':
            var KeywordsString = document.getElementById('SearchKeywords');
            document.location = "admin_search.php?sId=7900fdebce2c2368cc70ea301ee18fc3&Tpl=content_editContentLink_search.html&TableID=" + TableID + "&NodeID=" + NodeID + "&offset=" + document.documentlist.offset.value + "&Field=all&Keywords=" + KeywordsString.value;
            break;

    }
    //sId=6891856b84ee23f2330ee8359cd3f60d&o=view&type=main&pId=41&cId=4
}
 
 
function bind()
{

}
 
